package com.ztesoft.web.filecommon.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmSrcFileArg {
    private String pk_name = "SOURCE_DATA_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmSrcFileCriteria> oredCriteria;

    public DmSrcFileArg() {
        oredCriteria = new ArrayList<DmSrcFileCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmSrcFileCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmSrcFileCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmSrcFileCriteria or() {
    	DmSrcFileCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmSrcFileCriteria createCriteria() {
    	DmSrcFileCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmSrcFileCriteria createCriteriaInternal() {
    	DmSrcFileCriteria criteria = new DmSrcFileCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmSrcFileCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmSrcFileCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmSrcFileCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmSrcFileCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmSrcFileCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmSrcFileCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmSrcFileCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmSrcFileCriterion(condition, value1, value2));
        }

        public DmSrcFileCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andSourceDataIdIsNull() {
            addCriterion("SOURCE_DATA_ID is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdIsNotNull() {
            addCriterion("SOURCE_DATA_ID is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID =", value, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdNotEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <>", value, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdGreaterThan(Integer value) {
            addCriterion("SOURCE_DATA_ID >", value, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID >=", value, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdLessThan(Integer value) {
            addCriterion("SOURCE_DATA_ID <", value, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <=", value, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdNotLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdNotLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdNotRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID  in ", values, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdNotIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID not in ", values, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID between ", value1, value2, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andSourceDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID not between ", value1, value2, "SOURCE_DATA_ID");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andDmBackupTypeIsNull() {
            addCriterion("DM_BACKUP_TYPE is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeIsNotNull() {
            addCriterion("DM_BACKUP_TYPE is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeEqualTo(String value) {
            addCriterion("DM_BACKUP_TYPE =", value, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeNotEqualTo(String value) {
            addCriterion("DM_BACKUP_TYPE <>", value, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeGreaterThan(String value) {
            addCriterion("DM_BACKUP_TYPE >", value, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeGreaterThanOrEqualTo(String value) {
            addCriterion("DM_BACKUP_TYPE >=", value, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeLessThan(String value) {
            addCriterion("DM_BACKUP_TYPE <", value, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeLessThanOrEqualTo(String value) {
            addCriterion("DM_BACKUP_TYPE <=", value, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeLike(String value) {
            addCriterion("DM_BACKUP_TYPE like ", value, "DM_BACKUP_TYPE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeNotLike(String value) {
            addCriterion("DM_BACKUP_TYPE  not like ", value, "DM_BACKUP_TYPE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeLeftLike(String value) {
            addCriterion("DM_BACKUP_TYPE like ", value, "DM_BACKUP_TYPE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeNotLeftLike(String value) {
            addCriterion("DM_BACKUP_TYPE  not like ", value, "DM_BACKUP_TYPE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeRightLike(String value) {
            addCriterion("DM_BACKUP_TYPE like ", value, "DM_BACKUP_TYPE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeNotRightLike(String value) {
            addCriterion("DM_BACKUP_TYPE  not like ", value, "DM_BACKUP_TYPE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeIn(List<String> values) {
            addCriterion("DM_BACKUP_TYPE  in ", values, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeNotIn(List<String> values) {
            addCriterion("DM_BACKUP_TYPE not in ", values, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeBetween(String value1, String value2) {
            addCriterion("DM_BACKUP_TYPE between ", value1, value2, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmBackupTypeNotBetween(String value1, String value2) {
            addCriterion("DM_BACKUP_TYPE not between ", value1, value2, "DM_BACKUP_TYPE");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andDmStrategyIdIsNull() {
            addCriterion("DM_STRATEGY_ID is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdIsNotNull() {
            addCriterion("DM_STRATEGY_ID is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID =", value, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdNotEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID <>", value, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdGreaterThan(Integer value) {
            addCriterion("DM_STRATEGY_ID >", value, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID >=", value, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdLessThan(Integer value) {
            addCriterion("DM_STRATEGY_ID <", value, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdLessThanOrEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID <=", value, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdNotLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdLeftLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdNotLeftLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdRightLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdNotRightLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdIn(List<Integer> values) {
            addCriterion("DM_STRATEGY_ID  in ", values, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdNotIn(List<Integer> values) {
            addCriterion("DM_STRATEGY_ID not in ", values, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdBetween(Integer value1, Integer value2) {
            addCriterion("DM_STRATEGY_ID between ", value1, value2, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andDmStrategyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DM_STRATEGY_ID not between ", value1, value2, "DM_STRATEGY_ID");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andScriptPathIsNull() {
            addCriterion("SCRIPT_PATH is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathIsNotNull() {
            addCriterion("SCRIPT_PATH is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathEqualTo(String value) {
            addCriterion("SCRIPT_PATH =", value, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathNotEqualTo(String value) {
            addCriterion("SCRIPT_PATH <>", value, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathGreaterThan(String value) {
            addCriterion("SCRIPT_PATH >", value, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathGreaterThanOrEqualTo(String value) {
            addCriterion("SCRIPT_PATH >=", value, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathLessThan(String value) {
            addCriterion("SCRIPT_PATH <", value, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathLessThanOrEqualTo(String value) {
            addCriterion("SCRIPT_PATH <=", value, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathLike(String value) {
            addCriterion("SCRIPT_PATH like ", value, "SCRIPT_PATH", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathNotLike(String value) {
            addCriterion("SCRIPT_PATH  not like ", value, "SCRIPT_PATH", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathLeftLike(String value) {
            addCriterion("SCRIPT_PATH like ", value, "SCRIPT_PATH", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathNotLeftLike(String value) {
            addCriterion("SCRIPT_PATH  not like ", value, "SCRIPT_PATH", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathRightLike(String value) {
            addCriterion("SCRIPT_PATH like ", value, "SCRIPT_PATH", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathNotRightLike(String value) {
            addCriterion("SCRIPT_PATH  not like ", value, "SCRIPT_PATH", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathIn(List<String> values) {
            addCriterion("SCRIPT_PATH  in ", values, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathNotIn(List<String> values) {
            addCriterion("SCRIPT_PATH not in ", values, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathBetween(String value1, String value2) {
            addCriterion("SCRIPT_PATH between ", value1, value2, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andScriptPathNotBetween(String value1, String value2) {
            addCriterion("SCRIPT_PATH not between ", value1, value2, "SCRIPT_PATH");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andStaffIdIsNull() {
            addCriterion("STAFF_ID is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdIsNotNull() {
            addCriterion("STAFF_ID is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdEqualTo(Integer value) {
            addCriterion("STAFF_ID =", value, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("STAFF_ID <>", value, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdGreaterThan(Integer value) {
            addCriterion("STAFF_ID >", value, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID >=", value, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdLessThan(Integer value) {
            addCriterion("STAFF_ID <", value, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID <=", value, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdNotLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdLeftLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdNotLeftLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdRightLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdNotRightLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdIn(List<Integer> values) {
            addCriterion("STAFF_ID  in ", values, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("STAFF_ID not in ", values, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID between ", value1, value2, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID not between ", value1, value2, "STAFF_ID");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andConcurrencyThreadNumIsNull() {
            addCriterion("CONCURRENCY_THREAD_NUM is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumIsNotNull() {
            addCriterion("CONCURRENCY_THREAD_NUM is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumEqualTo(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM =", value, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumNotEqualTo(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM <>", value, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumGreaterThan(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM >", value, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM >=", value, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumLessThan(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM <", value, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumLessThanOrEqualTo(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM <=", value, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumLike(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM like ", value, "CONCURRENCY_THREAD_NUM", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumNotLike(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM  not like ", value, "CONCURRENCY_THREAD_NUM", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumLeftLike(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM like ", value, "CONCURRENCY_THREAD_NUM", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumNotLeftLike(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM  not like ", value, "CONCURRENCY_THREAD_NUM", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumRightLike(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM like ", value, "CONCURRENCY_THREAD_NUM", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumNotRightLike(Integer value) {
            addCriterion("CONCURRENCY_THREAD_NUM  not like ", value, "CONCURRENCY_THREAD_NUM", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumIn(List<Integer> values) {
            addCriterion("CONCURRENCY_THREAD_NUM  in ", values, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumNotIn(List<Integer> values) {
            addCriterion("CONCURRENCY_THREAD_NUM not in ", values, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumBetween(Integer value1, Integer value2) {
            addCriterion("CONCURRENCY_THREAD_NUM between ", value1, value2, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andConcurrencyThreadNumNotBetween(Integer value1, Integer value2) {
            addCriterion("CONCURRENCY_THREAD_NUM not between ", value1, value2, "CONCURRENCY_THREAD_NUM");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateEqualTo(String value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateNotEqualTo(String value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateGreaterThan(String value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateLessThan(String value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateNotLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateLeftLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateNotLeftLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateRightLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateNotRightLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateIn(List<String> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateNotIn(List<String> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (DmSrcFileCriteria) this;
        }
        public DmSrcFileCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateEqualTo(String value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateGreaterThan(String value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateLessThan(String value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateNotLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateLeftLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateRightLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateNotRightLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateIn(List<String> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

        public DmSrcFileCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (DmSrcFileCriteria) this;
        }

    }

    public static class DmSrcFileCriteria extends GeneratedCriteria {

        protected DmSrcFileCriteria() {
            super();
        }
    }

    public static class DmSrcFileCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmSrcFileCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmSrcFileCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmSrcFileCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmSrcFileCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmSrcFileCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmSrcFileCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}